<!DOCTYPE HTML>
<html style="background: #f3f3f3;">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>法援宝</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/lawyer.css" />
    <script type="text/javascript" src="../script/api.js"></script>
    <script type="text/javascript" src="../script/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../script/mobile.js"></script>
    <script type="text/javascript" src="../script/lawyer.js"></script>
</head>
<body>
<div id="secHeader">
  <header class="header">
      <a href="javascript:void(0);" onclick="api.closeWin()" class="back_btn"><img src="../image/head-fanhui.png" alt=""></a>
      <h2>常见问题</h2>
      <!--<a href="javascript:;" class="tel_btn">保存</a>-->
  </header>
</div>
<section class="question_detail">
    <div class="question_title">
        <span>问题：</span>
        <p id='que'>什么是委托保证金？</p>
    </div>
    <div class="question_title">
        <span>回答：</span>
        <p id='ans'>委托保证金是为了保证案源的真实性，当选择律师 中标时保证金将计入律师费中。</p>
    </div>
</section>
<section class="page_title">
    <div class="news_title">
        <h2>其他常见问题</h2>
    </div>
</section>
<section class="list_analysis">
    <div class="analysis_list">
        <ul id='con'>
            <li><a href="javascript:;" onclick="aaplay('index','personal_setting_question_details.html')">什么是普通代理？</a></li>

        </ul>
    </div>
</section>
<section class="other_operation">
    <ul>
        <li><a href="javascript:;" onclick="aaplay('advice','advice.html')">意见反馈</a></li>
        <li><a href="##" id='phone'>联系客服</a></li>
    </ul>
</section>

</body>

<script>
    apiready = function () {
      $api.fixStatusBar( $api.dom('#secHeader') );
      api.setStatusBarStyle({
          style: 'light'
      });
        //$api.fixStatusBar($api.dom('.header'));
        
        $('#phone').attr('href','tel:'+webphone)

        var para=api.pageParam
        var p={model:'question',id:para.id};
        api.ajax({
            url: webSiteUrl+'/app/home/find',
            method: 'post',
            data: {
                values:p

            }
        }, function(ret, err) {
            api.hideProgress();

            if(ret.code==200){

                var tj=ret.data;
                $('#que').html(tj.name);
                $('#ans').html(tj.content);

                question();

            }else{
                alert(ret.msg)
            }
        });










    };



    function question(){
        var p={model:'question'};
        api.ajax({
            url: webSiteUrl+'/app/home/lists',
            method: 'post',
            data: {
                values:p

            }
        }, function(ret, err) {
            api.hideProgress();

            if(ret.code==200){

                var tj=ret.data;

                html = "";
                for(var i=0;i<tj.length;i++){

                    html+='<li onclick="quedetail('+tj[i].id+')"><a href="javascript:void(0);">'+tj[i].name+'</a></li>';
                }
                $('#con').html(html);

            }else{
                alert(ret.msg)
            }
        });

    }

    function aaplay(name,url){
        api.openWin({
            name: name,
            url: url,
            reload:true,
            pageParam: {

            }
        });
    }
</script>
</html>
